home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
pgp23src.zip
/
SRC
/
CCC.X28
(
.txt
)
< prev
next >
Wrap
Microsoft Windows Help File Content
|
1993-05-09
|
400b
|
17 lines
# script to compile ANSI source with a K&R compiler and unproto.
while :
case $1 in
-c) ;;
-o) shift ;;
*.c) break ;;
*) arg="$arg $1" ;;
esac
shift
set -e
shift
b=`basename $f .c`
cc -E -C -I. $arg $f | unproto/unproto | \
sed 's/^#[ ]*\([0-9][0-9]*\)/#line \1 "'"\/tmp\/${b}.c"'"/' >/tmp/${b}.c
cc -c $arg /tmp/${b}.c $*
rm /tmp/${b}.c